package pub.tbc.toolkit.http;

/**
 *
 * @author tbc tianbencai@e-eduspace.com
 * @version 1.0 {2015年11月17日 下午3:30:12}
 */
public class HttpResponseWrapper {

	/**
	 * from response.getStatusLine()
	 */
	private String code;
	/**
	 * 正常时返回描述或者空串,异常时返回异常代码和基本描述
	 */
	private String msg;
	/**
	 * 正常时空串，异常是返回 e.getMessage();
	 */
	private String exception;
	/**
	 * 正常时返回正常值，异常时返回空串
	 */
	private String response;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getException() {
		return exception;
	}

	public void setException(String exception) {
		this.exception = exception;
	}

	public String getResponse() {
		return response;
	}

	public void setResponse(String response) {
		this.response = response;
	}

	@Override
	public String toString() {
		return "HttpResponseWrapper [code=" + code + ", msg=" + msg + ", exception=" + exception + ", response="
				+ response + "]";
	}

}
